package com.shujia.wyh.day12.homework.car;

public class PrivateCar extends Car {
    private String name;

    public PrivateCar(String kind, String card, String name) {
        super(kind, card);
        this.name = name;
    }

    @Override
    public void start() {
        System.out.println("我是" + name + "，我的汽车我做主");
    }

    @Override
    public void stop() {
        System.out.println("目的地到了，我们去玩吧");
    }
}
